home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 23 / AACD 23.iso / AACD / Programming / Wipeout / source / global.h < prev    next >
C/C++ Source or Header  |  1999-01-20  |  2KB  |  93 lines

  1. /*
  2.  * $Id: global.h 1.10 1999/01/20 16:51:58 olsen Exp olsen $
  3.  *
  4.  * :ts=4
  5.  *
  6.  * Wipeout -- Traces and munges memory and detects memory trashing
  7.  *
  8.  * Written by Olaf `Olsen' Barthel <olsen@sourcery.han.de>
  9.  * Public Domain
  10.  */
  11.  
  12. #ifndef _GLOBAL_H
  13. #define _GLOBAL_H 1
  14.  
  15. /******************************************************************************/
  16.  
  17. #ifndef _SYSTEM_HEADERS_H
  18. #include "system_headers.h"
  19. #endif    /* _SYSTEM_HEADERS_H */
  20.  
  21. /******************************************************************************/
  22.  
  23. #define MILLION 1000000
  24.  
  25. /******************************************************************************/
  26.  
  27. #define MAX_FILENAME_LEN 256
  28.  
  29. /******************************************************************************/
  30.  
  31. #define SIG_Handshake    SIGF_SINGLE
  32. #define SIG_Check        SIGBREAKF_CTRL_C
  33. #define SIG_Disable        SIGBREAKF_CTRL_D
  34. #define SIG_Enable        SIGBREAKF_CTRL_E
  35.  
  36. /******************************************************************************/
  37.  
  38. #ifdef __SASC
  39. #define FAR        __far
  40. #define ASM        __asm
  41. #define REG(x)    register __ ## x
  42. #endif    /* __SASC */
  43.  
  44. /******************************************************************************/
  45.  
  46. #define FLAG_IS_SET(v,f)    (((v) & (f)) != 0)
  47. #define FLAG_IS_CLEAR(v,f)    (((v) & (f)) == 0)
  48.  
  49. /******************************************************************************/
  50.  
  51. #define OK        (0)
  52. #define SAME    (0)
  53. #define NO        !
  54. #define NOT        !
  55. #define CANNOT    !
  56.  
  57. /******************************************************************************/
  58.  
  59. #define SUCCESS    (TRUE)
  60. #define FAILURE    (FALSE)
  61.  
  62. /******************************************************************************/
  63.  
  64. typedef STRPTR    KEY;
  65. typedef LONG *    NUMBER;
  66. typedef LONG    SWITCH;
  67.  
  68. /******************************************************************************/
  69.  
  70. #define PORT_MASK(p) (1UL << (p)->mp_SigBit)
  71.  
  72. /******************************************************************************/
  73.  
  74. #include "wipeoutsemaphore.h"
  75. #include "taskinfo.h"
  76. #include "magic.h"
  77. #include "allocator.h"
  78. #include "pools.h"
  79. #include "data.h"
  80. #include "protos.h"
  81.  
  82. /******************************************************************************/
  83.  
  84. VOID kprintf(const STRPTR,...);
  85.  
  86. /******************************************************************************/
  87.  
  88. #include "Assert.h"
  89.  
  90. /******************************************************************************/
  91.  
  92. #endif    /* _GLOBAL_H */
  93.